#ifndef __ADC_Calc_H
#define __ADC_Calc_H
#include "motor.h"

struct regular_sample {
    uint16_t Vbus_adc_value;
    float Vbus_ActValue;
    uint16_t Pot_adc_value;
    uint16_t Pot_ratio;
};

extern struct regular_sample Reg_V;

extern int32_t ADCConvertedRawData[5];
void Current_offset(void);
void ADC_Init(void);
void ADC_Sample_Calc(void);
void ReadAdcResult(void);
void regular_adc(void);
#endif 
